//
//  TimerTool.swift
//  swiftProject
//
//  Created by ZhangSai on 2021/5/25.
//

import UIKit

class TimerTool: NSObject {
    
    class func getCurrentTimes() -> String {
        let dat = Date.init(timeIntervalSinceNow: 0)
        let a = dat.timeIntervalSince1970
        let str:String = UserDefaults.standard.string(forKey:ActionHeader.UserDefault_TimerDifference) ?? ""
        let resTime_verify:Double = Double(str) ?? 0
        
        let timeString:String = NSString.init(format: "%0.f",  a * 1000 - resTime_verify) as String
        return timeString
    }
    
    
}
